<script type="text/javascript">
function showTabNews(a,b){
	for(var i=1; i<=b; i++)	{
		if(i == a) {
			document.getElementById("ctab"+i).className = "gd_g_20";
			document.getElementById("showtab"+i).style.display = "block";
		}else{
			document.getElementById("ctab"+i).className = "gd_g_20_select";
			document.getElementById("showtab"+i).style.display = "none";
		}
	}
}
</script>
<table class="giaiphap" width="100%" border="0">
   <tr>
		<td>
			<table class="item"width="100%" border="0">
				  <tr>
					<td class="item_title" ><a href="#" class="gd_g_20" id="ctab1" onclick="showTabNews('1','2')"><?php echo Kohana::lang('news_lang.lbl_new')?></a> &nbsp;|&nbsp; <a href="#" id="ctab2" class="gd_g_20_select" onclick="showTabNews('2','2')"><?php echo Kohana::lang('news_lang.lbl_press')?></a></td>
				  </tr>
			</table>
		</td>
	</tr>
	  <tr>
			<td>
				<table id="showtab1" style="display:block;" border="0" cellpadding="0" cellspacing="0">
				  <?php foreach($mlist as $list){?>
					<tr>
						<td  style="padding-top:10px">	
							<span><a  class="title_new" href="<?php echo $this->site['base_url']?>news/detail/<?php echo $list['news_id']?>">
							<?php echo $list['news_title'];?>
							</a></span>
						</td>
					</tr>
					<tr>
							<td  style="padding-top:10px">
								<table width="100%" cellspacing="0" cellpadding="0">
									<tr>
										<td valign="top"><?php
											if(!empty($list['news_image']) && file_exists('uploads/news/'.$list['news_image'])){
											?>
											<img class="img" src="<?php echo $this->site['base_url'].'uploads/news/'.$list['news_image'] ?>" align="left"  hspace="5px" style="padding-right:15px"/>
											<?php }?>
										</td>
										<td  valign="top"><?php echo $list['news_description'];?>&nbsp;</td>
									</tr>
								</table>
							</td>
							
					</tr>
					<tr>
						<td align="right"><span class="chitiet"><a href="<?php echo $this->site['base_url']?>news/detail/<?php echo $list['news_id']?>"><?php echo Kohana::lang('site_lang.lbl_more') ?>...</a></span></td>
					</tr>
					<tr>
						<td><hr size="1"  class="quiz" /></td>
					</tr><?php } ?>
					<tr>
						<td align="right" ><?php echo $this->pagination->render()?></td>
					</tr>
				  </table>
			 
			   <table id="showtab2" style="display:none;" border="0" cellpadding="0" cellspacing="0">
			  <?php foreach($mlistPress as $list){?>
					<tr>
						<td  style="padding-top:10px">
							<span><a  class="title_new" href="<?php echo $this->site['base_url']?>news/press/<?php echo $list['news_id']?>">
							<?php echo $list['news_title'];?>
							</a></span>
						</td>
					</tr>
					<tr>
						<td  style="padding-top:10px">
							<table width="100%" cellspacing="0" cellpadding="0">
								<tr>
									<td valign="top"><?php

								if(!empty($list['news_image']) && file_exists('uploads/news/'.$list['news_image'])){
								?>
									 <img class="img" src="<?php echo $this->site['base_url'].'uploads/news/'.$list['news_image'] ?>" align="left"  hspace="5px" style="padding-right:15px"/>
									 <?php }?>
									</td>
									<td  valign="top"><?php echo $list['news_description'];?>&nbsp;</td>
								</tr>
							</table>
						</td>
							
					</tr>
					<tr>
						<td align="right"><span class="chitiet"><a href="<?php echo $this->site['base_url']?>news/press/<?php echo $list['news_id']?>"><?php echo Kohana::lang('site_lang.lbl_more') ?>...</a></span></td>
					</tr>
					<tr>
						<td><hr size="1"  class="quiz" /></td>
					</tr><?php } ?>
					<tr>
						<td align="right" ><?php echo $this->pagination1->render()?></td>
					</tr>
			  </table>
			</td>
	  </tr>		  
</table>